const mysql = require('mysql')
const db = mysql.createPool({
  host:'127.0.0.1',
  user:'root',
  password:'root',
  database:'my_db_01'
})

db.query('select * from users',(err,result)=>{
  if(err) return console.log(err.message)
  console.log(result)
})